import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '任务名称',
    model: 'name',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '类型',
    model: 'type',
    dict: 'timed_task_type',
    placeholder: '请选择',
    type: 'select',
    disabled: true,
    message: '请选择类型',
    selectData: []
  },
  {
    label: '医院',
    model: 'hospital',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '科室',
    model: 'departmentId',
    placeholder: '请输入',
    disabled: true,
    url: '/base/department/list',
    type: 'select'
  },
  
  {
    label: '参会人数',
    model: 'attendance',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '会议名称',
    model: 'name',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },

  {
    label: '会议目的',
    model: 'goal',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },

  {
    label: '会议地点',
    model: 'meetingAddress',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },

  {
    label: '会议内容',
    model: 'content',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },


  {
    label: '会议开始时间',
    model: 'startTime',
    disabled: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择发表时间',
    setTime: 'startTime',
  },
  {
    label: '会议结束时间',
    model: 'endTime',
    disabled: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择发表时间',
    setTime: 'endTime',
  },
  {
    label: '提交时间',
    model: 'commitTime',
    disabled: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择发表时间',
    setTime: 'commitTime',
  },
  {
    label: '代表',
    model: 'mrId',
    disabled: true,
    placeholder: '请输入',
    url: '/base/medicalRepresentative/list',
    type: 'select',
    parm: {
      isDeleted: 0,
      status: 6
    },
  },
  {
    label: '品种',
    model: 'drugId',
    url: '/base/drug/list',
    placeholder: '请选择',
    type: 'select',
    disabled: true,
    message: '请选择品种',
    selectData: []
  },
  {
    label: '代理商',
    disabled: true,
    model: 'agencyName',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    dict: 'task_status_all',
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
  {
    label: '备注',
    model: 'goal',
    disabled: true,
    placeholder: '请输入',
    type: 'textarea'
  },
])
interface Parmes {
  status?: number
  billingStatus?: number
  accountTime?: any
  setTime?: any
  [propName: string]: any
}
const datas = ref<Parmes>({
  status: 1,
  billingStatus: 1,
  accountTime: new Date(),
  setTime: new Date(),
})
export default { bill, datas }